package com.aya.simple;

public class ResponseData {

    int code;
    String message;
    Object data;

    public static ResponseData build(int code, String message, Object data) {
        ResponseData responseData = new ResponseData();
        responseData.code = code;
        responseData.message = message;
        responseData.data = data;
        return responseData;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
